package com.ttms.dao;

import com.ttms.pojo.Page;
import com.ttms.pojo.Play;
import com.ttms.pojo.Seat;

import java.util.ArrayList;
import java.util.List;

public interface SeatDao {
    /**
     * 添加座位
     * @param seat
     * @return
     */
    public int addSeat(Seat seat);

    /**
     * 修改座位状态
     * @param seat
     * @return
     */
    public int updateSeatStatus( Seat seat);

    /**
     * 根据影厅ID求座位列表
     * @param studio_id
     * @return
     */
    public List<Seat> findSeatByStudioId(Integer studio_id);

    /**
     * 根据座位行数列数和影厅ID查找座位ID
     * @param studio_id
     * @param row
     * @param col
     * @return
     */
    public Seat findSeatByRowAndCol(Integer studio_id,Integer row,Integer col);

    public Seat findSeat(Integer seat_id);
}
